Previous Book Contents Book Index Next

Inside Macintosh: Open Transport /
Chapter 6 - Configuration Management / Configuration Management Reference
Functions / Initializing and Closing Open Transport


InitOpenTransport

Initializes all of the Open Transport software modules.

C INTERFACE
OSStatus InitOpenTransport(void);
C++ INTERFACES
None. C++ applications use the C interface to this function.

DESCRIPTION
The InitOpenTransport function initializes all the Open Transport software modules. Call this function before using other Open Transport functions. A return value other than kOTNoError indicates that the Open Transport software is not installed.

SPECIAL CONSIDERATIONS
If your program uses the Apple Shared Library Manager (ASLM), you must call the InitLibraryManager function to initialize it before calling the InitOpenTransport function.

SEE ALSO
To find out whether the Open Transport software is available, use the Gestalt function, which is described in Inside Macintosh: Operating System Utilities and whose returned response bits are described in the section "The Gestalt Selector and Response Bits" (page 6-15).

To initialize only the Open Transport modules that handle ports, use the InitOpenTransportUtilities function (page 6-25).

To initialize ASLM, use the InitLibraryManager function, described in the Apple Shared Library Manager Developer's Guide.

For a set of steps to follow when initializing Open Transport, see the section "Initializing Open Transport" (page 6-9).

To close the Open Transport software, use the CloseOpenTransport function (page 6-26).


Previous Book Contents Book Index Next

© Apple Computer, Inc.
15 AUG 1996